<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "{{%condition_url}}".
 *
 * @property integer $id
 * @property integer $solution_id
 * @property integer $is_whitelist
 * @property string $urls
 * @property integer $status
 * @property string $last_update
 */
class ConditionUrl extends \app\models\BaseAR
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%condition_url}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['solution_id'], 'required'],
            [['solution_id', 'is_whitelist', 'status'], 'integer'],
            [['urls'], 'string'],
            [['last_update'], 'safe']
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'solution_id' => 'Solution ID',
            'is_whitelist' => 'Is Whitelist',
            'urls' => 'Urls',
            'status' => 'Status',
            'last_update' => 'Last Update',
        ];
    }
}
